﻿using System;
using System.Collections.Generic;
using System.Text;
using Castle.ActiveRecord;
using Castle.Components.Validator;
using MiragePWF.NH.Validation;
using Wolfut.MirageEE.Kernal.Common;
using Wolfut.MirageEE.Domain.CommonUtilities;

namespace Wolfut.MirageEE.Domain.Procurement
{
    /// <summary>
    /// 采购退货信息
    /// </summary>
    /// <remarks>
    /// Author: Bruce
    /// Date: 2009-03-15
    /// </remarks>
    [ActiveRecord("EXPENSE_BILL_DETAILS")]
    public class ExpenseBillsDetail : PersistentObjectWithGuid
    {

        #region 费用类别
        private string expenseCategory = string.Empty;
        /// <summary>
        /// 费用类别
        /// </summary>
        [Property("EXPENSE_CATEGORY")]
        [ValidateLength(0, 100, "费用类别超长！")]
        public virtual string ExpenseCategory
        {
            get { return expenseCategory; }
            set { expenseCategory = value; }
        }
        #endregion

        #region 金额
        /// <summary>
        /// 金额
        /// </summary>
        [Property("EXPENSE_SUM")]
        public virtual decimal ExpenseSum
        {
            get { return expenseSum; }
            set { expenseSum = value; }
        }
        private decimal expenseSum;
        #endregion

        #region 费用支出单ID
        private string expenseBillID = string.Empty;

        /// <summary>
        /// 费用支出单ID
        /// </summary>
        [Property("EXPENSE_BILL_ID")]
        [ValidateLength(0, 40, "费用支出单ID超长")]
        public virtual string ExpenseBillID
        {
            get { return expenseBillID; }
            set { expenseBillID = value; }
        }
        #endregion

        #region 逻辑删除
        private Boolean isDeleted;
        [Property("IS_DELETED")]
        public virtual Boolean IsDeleted
        {
            get
            {
                return isDeleted;
            }
            set
            {
                isDeleted = value;
            }
        }
        #endregion

    }
}
